<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>公告内容</title>
		<style type="text/css">
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}

.STYLE1 {
	font-size: 12px
}

.STYLE3 {
	font-size: 12px;
	font-weight: bold;
}

.STYLE4 {
	color: #03515d;
	font-size: 12px;
}

.td_bg {
	font-size: 13px;
	background: #ffffff;
	border:1px solid #6495ED;
}

/*表单项的字体格式*/
.td_x_bg {
	font-size: 13px;
	font-weight: bold;
	text-align: center;
	background: #BDE3FB;
	border:1px solid #6495ED;
}

.table {
	margin-top: 10px;
}
</style>
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/checkUtil.js"></script>

	</head>

	<body>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td height="30" background="images/main/tab_05.gif">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="12" height="30">
								<img src="images/main/tab_03.gif" width="12" height="30" />
							</td>
							<td>
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td width="46%" valign="middle">
											<table width="100%" border="0" cellspacing="0"
												cellpadding="0">
												<tr>
													<td width="5%">
														<div align="center">
															<img src="images/main/tb.gif" width="16" height="16" />
														</div>
													</td>
													<td width="95%" class="STYLE1">
														<span class="STYLE3">你当前的位置</span>：[队员管理]-[修改密码]
													</td>
												</tr>
											</table>
										</td>
										<td width="54%">
											<table border="0" align="right" cellpadding="0"
												cellspacing="0">
												<tr>
													<td width="80">
														<table width="90%" border="0" cellpadding="0"
															cellspacing="0">
															<tr>
																<td>
																	&nbsp;
																</td>
															</tr>
														</table>
													</td>
													<td width="60">
														<table width="90%" border="0" cellpadding="0"
															cellspacing="0">
															<tr>
																<td class="STYLE1"></td>
																<td class="STYLE1"></td>
															</tr>
														</table>
													</td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
							</td>
							<td width="16">
								<img src="images/main/tab_07.gif" width="16" height="30" />
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td>
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="8" background="images/main/tab_12.gif">
								&nbsp;
							</td>
							<td>
								<form action="front/PassModify.action" method="post" onsubmit="return checkMPassForm();" >
								<table class="table" border="1" width="24%" align="center"
									cellpadding="2" cellspacing="2" bordercolor="#6495ED">
									<tbody>
									<s:if test="%{#addwrong == 0}">
										<script language = "javascript">
									         alert("修改密码失败！");
									    </script>
									</s:if>
									<s:elseif test="%{#addwrong == 1}">
									   <script language = "javascript">
									         alert("当前密码不正确，请重新输入！");
									    </script>
									</s:elseif>
									<s:elseif test="%{#addwrong == 2}">
									   <script language = "javascript">
									         alert("新密码长度不得少于6位！");
									    </script>
									</s:elseif>
									<s:elseif test="%{#addwrong == 3}">
									   <script language = "javascript">
									         alert("两次密码不一致！");
									    </script>
									</s:elseif>
									<s:elseif test="%{#addwrong == 4}">
									   <script language = "javascript">
									         alert("修改密码成功，返回登录页面！");
									         var ss = window.parent;
									         var sss = ss.parent;
									         sss.parent.location.href="front/logout.action";
									    </script>
									</s:elseif>
										<tr>
											<td class="td_x_bg" width="150px">
												<nobr>
													当前密码
												</nobr>
											</td>
											<td class="td_bg">
												<input type="password" name="pm.oldPass" id="oldpass" style="width:100%;border:0"/>
											</td>
											
										</tr>
										<tr>
											<td class="td_x_bg" width="150px">
												<nobr>
													新密码
												</nobr>
											</td>
											<td class="td_bg">
												<input type="password" name="pm.newPass" id="newpass" style="width:179px;border:0" />
											</td>
											
										</tr>
										<tr>
											<td class="td_x_bg" width="150px">
												<nobr>
													确认新密码
												</nobr>
											</td>
											<td class="td_bg">
												<input type="password" name="pm.comfirmPass" id="comfirmPass" style="width:179px;border:0" />
											</td>
											
										</tr>
										<tr>
											<td class="td_bg" colspan="2" align="center">
												<input type="submit" value="提交">&nbsp;&nbsp;&nbsp;&nbsp;
												<input type="reset" value="重置">
											</td>
										</tr>
									</tbody>
								</table>
							</td>
							<td width="8" background="images/main/tab_15.gif">
								&nbsp;
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td height="35" background="images/main/tab_19.gif">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="12" height="35">
								<img src="images/main/tab_18.gif" width="12" height="35" />
							</td>
							<td>
								<form action="" method="get">
									<table width="100%" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td>
												&nbsp;
											</td>
										</tr>
									</table>
								</form>
							</td>
							<td width="16">
								<img src="images/main/tab_20.gif" width="16" height="35" />
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</body>
</html>
